export const SSHErrorCodeConst_Name = 'SSHErrorCodeConst'
export const SSHErrorCodeConstType_Name = 'SSHErrorCodeConstType'

export const SSHErrorCodeConst = {
  // 连接类错误
  ECONNREFUSED: 'ECONNREFUSED',
  ETIMEDOUT: 'ETIMEDOUT',
  EHOSTUNREACH: 'EHOSTUNREACH',
  EAUTH: 'EAUTH',
  // 命令执行类错误
  ENOENT: 'ENOENT',
  EACCES: 'EACCES',
  // SFTP 类错误
  NO_SUCH_FILE: 'NO_SUCH_FILE',
  PERMISSION_DENIED: 'PERMISSION_DENIED',
  // 未知错误
  UNKNOWN: 'UNKNOWN'
} as const

export type SSHErrorCodeConstType = (typeof SSHErrorCodeConst)[keyof typeof SSHErrorCodeConst]
